package com.eshin.validatetor;

import org.springframework.stereotype.Component;

@Component
public class OrderNameValidator implements Validator<OrderBean> {

	@Override
	public void validate(OrderBean orderBean) {
		System.out.println("order:"+orderBean.getName());
	}

}
